home *** CD-ROM | disk | FTP | other *** search
/ Macintosh Technology Seed 1996 September / Macintosh Technology Seed (September 1996) (CDRM1437020).ISO / pc / qd3d15d6 / 15d6_sdk.exe / QD3D Win32 1.5d6 / Interfaces / QD3DAcceleration.h < prev    next >
C/C++ Source or Header  |  1996-08-21  |  3KB  |  86 lines

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        QD3DAcceleration.h                                         **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:     Header file for low-level 3D driver API                     **
  7.  **                 Vendor IDs, and Apple's engine IDs                         **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **                                                                          **
  11.  **     Copyright (C) 1994-96 Apple Computer, Inc.  All rights reserved.     **
  12.  **                                                                          **
  13.  **                                                                          **
  14.  *****************************************************************************/
  15. #ifndef QD3DAcceleration_h
  16. #define QD3DAcceleration_h
  17.  
  18. #if defined(PRAGMA_ONCE) && PRAGMA_ONCE
  19.     #pragma once
  20. #endif  /*  PRAGMA_ONCE  */
  21.  
  22. #if defined(THINK_C) || defined(__SC__)
  23.     #pragma options(!pack_enums, !align_arrays)
  24.     #pragma SC options align=power
  25. #elif defined(__MWERKS__)
  26.     #pragma enumsalwaysint on
  27.     #pragma align_array_members off
  28.     #pragma options align=native
  29. #elif defined(__PPCC__)
  30.     #pragma options align=power
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. /******************************************************************************
  38.  **                                                                             **
  39.  **                         Vendor ID definitions                             **
  40.  **                                                                             **
  41.  *****************************************************************************/
  42.  
  43. /*
  44.  *  If kQAVendor_BestChoice is used, the system chooses the "best" drawing 
  45.  *  engine available for the target device. This should be used for the 
  46.  *  default.
  47.  */
  48. #define kQAVendor_BestChoice        (-1)
  49.  
  50. /*
  51.  *  The other definitions (kQAVendor_Apple, etc.) identify specific vendors
  52.  *  of drawing engines. When a vendor ID is used in conjunction with a
  53.  *  vendor-defined engine ID, a specific drawing engine can be selected.
  54.  */
  55. #define kQAVendor_Apple            0
  56. #define kQAVendor_ATI            1
  57. #define kQAVendor_Radius        2
  58. #define kQAVendor_Mentor        3
  59. #define kQAVendor_Matrox        4
  60. #define kQAVendor_Yarc            5
  61. #define kQAVendor_DiamondMM        6
  62. #define kQAVendor_3DLabs        7
  63.  
  64. /******************************************************************************
  65.  **                                                                             **
  66.  **                         Apple's engine ID definitions                         **
  67.  **                                                                             **
  68.  *****************************************************************************/
  69.  
  70. #define kQAEngine_AppleSW        0        /*  Default software rasterizer         */
  71. #define kQAEngine_AppleHW        (-1)    /*  QuickDraw 3D Accelerator Card     */
  72. #define kQAEngine_AppleHW2        1        /*  Another Apple accelerator         */
  73. #define kQAEngine_AppleHW3        2        /*  Another Apple accelerator         */
  74.  
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78.  
  79. #if defined(__MWERKS__)
  80.     #pragma enumsalwaysint reset
  81. #elif defined(__xlc) || defined(__xlC) || defined(__xlC__) || defined(__XLC121__)
  82.     #pragma options enum=reset
  83. #endif
  84.  
  85. #endif /* QD3DAcceleration_h */
  86.